package com.wmh.baseservice.skd.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 商品信息表
 * @TableName skd_goods_info
 */
@TableName(value ="skd_goods_info")
@Data
@Accessors(chain = true)
public class SkdGoodsInfo implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 商品名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 商品描述
     */
    @TableField(value = "description")
    private String description;

    /**
     * 商品图片地址
     */
    @TableField(value = "img_url")
    private String imgUrl;

    /**
     * 视频地址
     */
    @TableField(value = "video_url")
    private String videoUrl;

    /**
     * 1有规格 -1无规格
     */
    @TableField(value = "has_spec")
    private Integer hasSpec;

    /**
     * 单价
     */
    @TableField(value = "price")
    private BigDecimal price;

    /**
     * 划线价
     */
    @TableField(value = "crossed_price")
    private BigDecimal crossedPrice;

    /**
     * 商品编码
     */
    @TableField(value = "goods_no")
    private String goodsNo;

    /**
     * 标签id
     */
    @TableField(value = "labels")
    private String labels;

    /**
     * 分类id
     */
    @TableField(value = "category_id")
    private Long categoryId;

    /**
     * 是否下架
     */
    @TableField(value = "off_shelves")
    private Integer offShelves;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    /**
     * 是否删除 0: 未删除 1: 已删除
     */
    @TableField(value = "deleted")
    @TableLogic
    private Integer deleted;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}